package com.iflytek.pet.biz.manager;

import com.iflytek.pet.biz.entity.login.Account;
import com.iflytek.pet.biz.service.login.AccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: JohnRambo
 * @description: TODO
 * @date: 2024/5/27 23:25
 * @version: 1.0
 */
@Service("accountManagerService")
public class AccountManagerService {

    @Resource
    private AccountService accountService;

    public List<Account> getAccountList(){
        return accountService.list();
    }

    public boolean addAccount(Account account){
        return accountService.save(account);
    }

}